Description: 这是linux下关于C的编程,其中包含了socket的几种用法的例子,有udp、tcp以及select的使用。-under linux on the C programming, which includes a socket several examples of usage, udp, tcp and select use. Platform: |
Size: 571308 |
Author:钟文德 |
Hits:
Description: 这是linux下关于C的编程,其中包含了socket的几种用法的例子,有udp、tcp以及select的使用。-under linux on the C programming, which includes a socket several examples of usage, udp, tcp and select use. Platform: |
Size: 571392 |
Author:钟文德 |
Hits:
Description: C++ Socket的select模型的应用实例
C++ Socket的select模型的应用实例-C++ Socket of the application of select model C++ Socket of the application of select models Platform: |
Size: 14336 |
Author:方老 |
Hits:
Description: socket客户端代码,可以从web服务器取文件,并且使用了select高级方法-socket client-side code, you can access files from the web server, and the use of select high-level methods Platform: |
Size: 2048 |
Author:leo |
Hits:
Description: 该代码是用select IO复用实现的网络服务器
里面有两个版本,区别读者可以好好看看,并体会其不同的实现方式的优缺点。
对初级入门的特别合适-The code is used to achieve select IO multiplexing network server there are two versions, the difference between a good reader can see and appreciate their different ways to achieve the advantages and disadvantages. Primary entry special suitable Platform: |
Size: 2048 |
Author:钟伟 |
Hits:
Description: 网络编程,实现三种Winsocket I/O模型:select、基于事件、基于消息-Network programming, to achieve three Winsocket I/O model: select, based on the incident, based on the information Platform: |
Size: 177152 |
Author:丁锐 |
Hits:
Description: socket网络编程的五种I/O模型之一:select模型。-socket network programming of five I/O model one: select the model. Platform: |
Size: 2039808 |
Author:戎金辉 |
Hits:
Description: 传文件使用消息头方式3k每秒一客户一线程,并行传输,select i/o socket模型,测试无错.无丢包粘包.除非网络断开或掉网.
配套2个客户端接收,一个控制台.一个mfc-Way of transfer files using the header of a client of a thread-3k per second, parallel transmission, select i/o socket model, testing error-free. No packet loss stick package. Unless the network is disconnected or out of network. Supporting two clients received a console. a mfc Platform: |
Size: 156672 |
Author:styleman |
Hits:
Description: linux网络编程实例,讲解了一些udp tcp的socket编程,有select的例子-linux network programming examples to explain some of the udp tcp socket programming, there are select examples of Platform: |
Size: 571392 |
Author:yzh |
Hits:
Description: C直接读取dbf文件,RS-232-C端口实时监控软件的设计实现,Select()系统调用及 文件描述符集fd_set的应用,Socket接口实现网络异步通信,用C程序挽救Foxmail中的邮件-C to directly read dbf file, RS-232-C port real-time monitoring software design and implementation, Select () system call and file descriptor set fd_set application, Socket asynchronous communication network interface, using C application in the mail to save Foxmail Platform: |
Size: 3759104 |
Author:jzt |
Hits:
Description: socket编程,用select进行的,服务器可以响应多个客户端,控制台程序,简单,适合初学者。-socket programming carried by select the server can respond to multiple clients, the console program, simple, suitable for beginners. Platform: |
Size: 3960832 |
Author: 施连甲 |
Hits:
Description: 这是一个关于各种IO模型的socket server实现与测试。
这里采用多种模型实现了一个TCP ECHO服务器,将client发送的内容echo回去。
client每秒会发送一次请求,server保持并发连接并进行相应。
现已实现的模型:
base: 最原始的echo服务器
thread: 多线程模型
select: select模型
poll: poll模型
epoll: epoll模型
参数
修改src/clients.sh 可以生成指定数量的client
修改src/base.cpp 中的MAX_CLIENT_NUM参数调整server最大服务数
修改src/base.cpp 中的CLIENT_INTERVAL参数调整client发包间隔
修改Makefile 中的DEBUG参数确定是否输出调试信息
使用方法(This is a socket server implementation and testing of various IO models.
Here, a variety of models are used to implement a TCP ECHO server that returns the contents sent by echo back to client.
Client sends a request per second, and server maintains concurrent connections and performs them accordingly.
The model has been implemented:
Base: the most primitive echo server
Thread: multithreaded model
Select: select model
Poll: poll model
Epoll: epoll model
parameter
Modify src/clients.sh to generate a specified number of client
Modify the MAX_CLIENT_NUM parameter in src/base.cpp to adjust the maximum number of server services
Modify the CLIENT_INTERVAL parameter in src/base.cpp to adjust the client contract interval
Modify the DEBUG parameter in the Makefile to determine whether output debugging information is out
Usage method) Platform: |
Size: 11264 |
Author:JIE2012
|
Hits: